Draft Polygon/ru

Draft Polygon

Расположение в меню
Черчение -> Многоугольник
Верстаки
Draft, Arch
Быстрые клавиши
P G
Представлено в версии
-
См. также
Нет

Description

The Draft Polygon command creates a regular polygon on the current working plane from a center and a radius. The radius can be defined by picking a point.

A Draft Polygon can be switched from inscribed to circumscribed by changing its ДанныеDraw Mode property. The corners of a Draft Polygon can be filleted (rounded) or chamfered by changing its ДанныеFillet Radius or ДанныеChamfer Size respectively.

Regular polygon defined by two points, center and radius

Usage

See also: Draft Tray, Draft Snap and Draft Constrain.

  1. There are several ways to invoke the command:
    • Press the Polygon button.
    • Draft: Select the Drafting → Polygon option from the menu.
    • BIM: Select the 2D Drafting → Polygon option from the menu.
    • Use the keyboard shortcut: P then G.
  2. The Polygon task panel opens. See Options for more information.
  3. Adjust the desired number of Sides.
  4. Pick the first point, the center of the polygon, in the 3D view, or type coordinates and press the Enter point button.
  5. Pick the second point in the 3D view, or enter a Radius.

Options

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).

Notes

Preferences

See also: Preferences Editor and Draft Preferences.

Properties

See also: Property editor.

A Draft Polygon object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:

Data

Draft

View

Draft

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Polygon use the make_polygon method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makePolygon method.

polygon = make_polygon(nfaces, radius=1, inscribed=True, placement=None, face=None, support=None)

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

polygon1 = Draft.make_polygon(4, radius=500)
polygon2 = Draft.make_polygon(5, radius=750)

zaxis = App.Vector(0, 0, 1)
p3 = App.Vector(1000, 1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 90))

Polygon3 = Draft.make_polygon(6, radius=1450, placement=place3)

doc.recompute()